package com.rjpacket.chileme.app.models;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2015/3/24 0024.
 */
public class MainHeadDown {
//    "subtitle": "查看附近团购",
//           "title": "附近团购",
//            "url": "http://m.dianping.com/tuan/home?lat=40.0376987457&lng=116.370792389&utm_source=eleme4&utm_medium=eleme&utm_term=m&utm_content=4&utm_campaign=f",
//            "subtitle_hexcolor": "666666",
//            "image_url": "http://api.ele.me/static/images/home_icon_dianpin.png",
//            "title_hexcolor": "52b73a"
    private String subtitle;
    private String title;
    private String url;
    private String image_url;

    public void parseJSON(JSONObject jsonObject){
        if(jsonObject != null){
            try {
                subtitle = jsonObject.getString("subtitle");
                title = jsonObject.getString("title");
                url = jsonObject.getString("url");
                image_url = jsonObject.getString("image_url");
            } catch (JSONException e) {
                e.printStackTrace();
            }

        }
    }
    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


}
